Using the Built-in Python Debugger

 

import pdb

 

n

 

s

 

n

 

p variable

 

q

 

 

(Pdb) !variable=99